<template>
  <ul>
    <li v-for="item in data" :key="item.id">
      <slot :data="item">{{ item.name }}</slot>
    </li>
  </ul>
</template>
<script>
export default {
  name: 'MyTreeTest',
  props: {
    data: {
      type: Array,
      default: () => []
    }
  }
}
</script>
